import sys
import unittest
sys.path.append("..")
from tagengine.commons import *


class CommonsTests(unittest.TestCase):
    
    def test_camelcase(self):
        self.assertEqual(camelCase("test_word", True), "TestWord")
        self.assertEqual(camelCase("testWord", True), "TestWord")
        self.assertEqual(camelCase("test_wordWord", True), "TestWordWord")
        self.assertEqual(camelCase("test_word"), "testWord")
        self.assertEqual(camelCase("testWord"), "testWord")
        self.assertEqual(camelCase("test_wordWord"), "testWordWord")
        
if __name__ == "__main__":
    unittest.main()